package me.zhengjie.minbearwcs.dao.agv.impl;

import lombok.RequiredArgsConstructor;
import me.zhengjie.minbearwcs.dao.agv.inf.AgvMissionDetailHistoryDao;
import me.zhengjie.minbearwcs.entity.Mapper.agv.history.AgvMissionDetailHistoryMapper;
import me.zhengjie.minbearwcs.entity.PO.agv.history.AgvMissionDetailHistory;
import org.springframework.stereotype.Repository;

@Repository
@RequiredArgsConstructor
public class AgvMissionDetailHistoryDaoImpl implements AgvMissionDetailHistoryDao {

    private final AgvMissionDetailHistoryMapper mapper;

    @Override
    public boolean insert(AgvMissionDetailHistory agvMissionDetailHistory) {
        return mapper.insert(agvMissionDetailHistory) == 1;
    }
}
